﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace Story
{

    public class DialogStateStart : DialogStateBase
    {
        public DialogStateStart(DialogState state, StoryDialogManager controller)
            : base(state, controller)
        {

        }

        public override void Enter()
        {
            dialogManager.currentIndex = -1;
            dialogManager.isPreloadResourceComplete = false;
            dialogManager.PreLoadResource(OnPreLoadComplete);
        }

        void OnPreLoadComplete() {
            dialogManager.SwitchState(DialogState.Next);
        }



    }

}


